/*
========================================================================
 Name        : ModifyPriceContainer.h
 Author      : shitou
 Copyright   : Your copyright notice
 Description : 
========================================================================
*/
#ifndef MODIFYPRICECONTAINER_H
#define MODIFYPRICECONTAINER_H

// [[[ begin generated region: do not modify [Generated Includes]
#include <coecntrl.h>		
// ]]] end generated region [Generated Includes]

#include "RegExpUtil.h"

// [[[ begin [Event Handler Includes]
// ]]] end [Event Handler Includes]

// [[[ begin generated region: do not modify [Generated Forward Declarations]
class MEikCommandObserver;		
class CAknDoubleStyleListBox;
class CEikTextListBox;
// ]]] end generated region [Generated Forward Declarations]

#include "TaobaoModifyPricePage.h"
#include "ListContainer.h"

/**
 * Container class for ModifyPriceContainer
 * 
 * @class	CModifyPriceContainer ModifyPriceContainer.h
 */
class CModifyPriceContainer : public CListContainer
	{
public:
	// constructors and destructor
	CModifyPriceContainer();
	static CModifyPriceContainer* NewL( 
		const TRect& aRect, 
		const CCoeControl* aParent, 
		MEikCommandObserver* aCommandObserver );
	static CModifyPriceContainer* NewLC( 
		const TRect& aRect, 
		const CCoeControl* aParent, 
		MEikCommandObserver* aCommandObserver );
	virtual ~CModifyPriceContainer();

public:
    void HandleControlEventL(CCoeControl* aControl,TEventType aEventType);
    
public:
    void SetReslutLine(RegExpResultLine* iHiddenLine);
    CTaobaoModifyPricePage* ResolvePricePage();
	void Setpage(TInt aPage);
	TBool ModifyPrice( TInt aCommand );
	void AddItemFromPageL();

private:
	const TDesC& GetModifyPriceInfo(TInt aIndex);
	
private:
	const TDesC& PostFree();
	HBufC* AdjustFee();
	void setCbaL();    
	void AddListBitmapsL();
    void AddListItemsL();
    
private: 
	CTaobaoModifyPricePage* iPage;
	RegExpResultLine* iReslutLine;
	
	};
				
#endif // MODIFYPRICECONTAINER_H
